/* ===== HERO SECTION ENCAPSULADA CON MÁSCARA SEMÁNTICA (CORREGIDA) ===== */
.atlas-hero-section {
    width: 100%;
    min-height: calc(100vh - 85px);
    background-color: #EAEAEA;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.09'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 35px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* El contenedor principal usando máscara SVG matemática para curvas perfectas */
.atlas-hero-clipped-container {
    width: 100%;
    max-width: 1400px;
    /* Unificado */
    height: 80vh;
    min-height: 660px;
    position: relative;
    background-color: #0d3b66;
    overflow: hidden;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' preserveAspectRatio='none'%3E%3Cpath d='M0,150 C0,150,0,100,40,100 C80,100,200,100,240,100 C280,100,300,60,320,30 C335,10,345,0,370,0 L1360,0 Q1400,0,1400,40 L1400,600 Q1400,640,1360,640 L1040,640 Q1000,640,985,670 L935,760 Q920,790,880,790 L40,790 Q0,790,0,750 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 800' preserveAspectRatio='none'%3E%3Cpath d='M0,150 C0,150,0,100,40,100 C80,100,200,100,240,100 C280,100,300,60,320,30 C335,10,345,0,370,0 L1360,0 Q1400,0,1400,40 L1400,600 Q1400,640,1360,640 L1040,640 Q1000,640,985,670 L935,760 Q920,790,880,790 L40,790 Q0,790,0,750 Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Multimedia de Fondo */
.atlas-hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Logotipo superior derecho */
.atlas-top-logo {
    position: absolute;
    top: 20px;
    right: 1090px;
    z-index: 20;
    width: 250px;
    /* Ajusta el tamaño aquí */
}

.atlas-top-logo img {
    width: 100%;
    height: auto;
}

/* Logotipo superior derecho */
.atlas-top-marca {
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 20;
    width: 550px;
    /* Ajusta el tamaño aquí */
}

.atlas-top-marca img {
    width: 100%;
    height: auto;
}

/* Texto esquina inferior en negro */
.atlas-hero-text-corner {
    position: absolute;
    bottom: 70px;
    right: 40px;
    z-index: 15;
}

.corner-down {
    color: #0e3658 !important;
    /* Fuerza el color negro */
    font-size: 20px;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Asegúrate de que .atlas-hero-section tenga position relative */
.atlas-hero-section {
    position: relative;
    /* ... resto de tus estilos previos ... */
}

.atlas-hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    /* Incremento inicial para el JS Parallax */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.atlas-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d3b6600 0%, #0d3b668a 100%);
    z-index: 2;
}

/* Contenedor de contenido */
.atlas-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding: 60px 60px 55px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}


/* Animación inicial por JS del título */
.atlas-hero-title {
    font-size: clamp(28px, 3.6vw, 54px);
    font-weight: 400;
    line-height: 1.15;
    color: #FFFFFF !important;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    max-width: 880px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Grid de tarjetas simétricas */
.atlas-hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 820px;
    /* Ajuste perfecto para evitar la curva inferior */
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

/* Cristal de Tarjetas */
.atlas-glass-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 125px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.atlas-glass-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(105, 219, 42, 0.4);
    /* Destello verde Trifásica */
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.atlas-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}


.atlas-card-subtitle {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #8E939E;
    margin-bottom: 16px;
}

.atlas-card-brand-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.atlas-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.atlas-brand-number {
    color: #69db2b;
    font-size: 11px;
    vertical-align: super;
    margin-left: 2px;
}

.atlas-card-arrow {
    width: 18px;
    height: 18px;
    color: #8E939E;
    transition: transform 0.3s ease, color 0.3s ease;
}

.atlas-card-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.atlas-glass-card:hover .atlas-card-arrow {
    color: #69DB2A;
    transform: translate(2px, -2px);
}

/* ===== CONTROLADORES ANIMACIÓN JS ===== */
.atlas-animate-load .atlas-hero-title,
.atlas-animate-load .atlas-hero-cards-grid {
    opacity: 1;
    transform: translateY(0);
}

.atlas-animate-load .atlas-hero-bg-media img {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .atlas-hero-clipped-container {
        -webkit-mask-image: none;
        mask-image: none;
        border-radius: 24px;
        height: auto;
    }

    .atlas-hero-content {
        position: relative;
        padding: 60px 24px 40px 24px;
    }

    .atlas-hero-cards-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
    }
}